Resource URL: /platform/<<version=3>>/cloud/jobs-files/<JOB>

    Overview: This resource retrieves files associated with individual
              cloudpool jobs. JOB in the resource path is the job ID.

     Methods: GET

********************************************************************************

Method GET: Retrieve files associated with a cloudpool job.

       URL: GET /platform/<<version=3>>/cloud/jobs-files/<JOB>

Query arguments:
     sort=<enum> Where <enum> is one of state, name.  The field that will be
                 used for sorting. Output is limited to maximum of 100000 files.
 resume=<string> Continue returning results from previous call using this token
                 (token should come from the previous call, resume cannot be
                 used with other options).
 limit=<integer> Number of files to display; range from 1 to 100000.
offset=<integer> Specifies the starting entry to be displayed.
  page=<integer> Used with limit option. If exists, specifies the starting page
                 to display where page size is specified by limit. This option
                 will be deprecated; please use offset option instead.
      dir=<enum> Where <enum> is one of ASC, DESC.  The direction of the sort.

GET response body schema:
{
  "type": [
    {
      "additionalProperties": false, 
      "type": "object", 
      "description": "A list of errors that may be returned.", 
      "properties": {
        "errors": {
          "items": {
            "additionalProperties": false, 
            "type": "object", 
            "description": "An object describing a single error.", 
            "properties": {
              "field": {
                "type": "string", 
                "description": "The field with the error if applicable."
              }, 
              "message": {
                "type": "string", 
                "description": "The error message."
              }, 
              "code": {
                "type": "string", 
                "description": "The error code."
              }
            }
          }, 
          "type": "array"
        }
      }
    }, 
    {
      "additionalProperties": false, 
      "type": "object", 
      "properties": {
        "files": {
          "minItems": 0, 
          "items": {
            "type": "object", 
            "description": "File associated with a cloud job.", 
            "properties": {
              "state": {
                "enum": [
                  "waiting", 
                  "running", 
                  "paused", 
                  "canceled", 
                  "completed", 
                  "error", 
                  "none", 
                  "pending"
                ], 
                "type": "string", 
                "description": "State of file."
              }, 
              "id": {
                "minimum": 1, 
                "type": "integer", 
                "description": "ID number of the file within the job"
              }, 
              "name": {
                "minLength": 1, 
                "type": "string", 
                "description": "File path", 
                "maxLength": 4096
              }
            }
          }, 
          "type": "array", 
          "maxItems": 4294967295
        }, 
        "total": {
          "minimum": 0, 
          "type": "integer", 
          "description": "Total number of items available.", 
          "maximum": 4294967295
        }, 
        "resume": {
          "minLength": 0, 
          "type": [
            "string", 
            "null"
          ], 
          "description": "Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options)."
        }
      }
    }
  ]
}
